<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.demo.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
	<!-- 顶部导航栏开始 -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target="#nav">
				<span class="sr-only">Toggle</span> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#"> <img src="images/logo.gif"
				style="height: 50px" />
			</a>
		</div>
	</div>
	</nav>
	<!-- 顶部导航栏结束 -->
<div style="height: 150px; width: 100%;"></div>
<%List<User> list = (List<User>)request.getAttribute("list"); %>
<table border=1 align="center">
<tr>
    <td>用户名</td>
    <td>密码</td>
    <td>性别</td>
    <td>邮箱</td>
    <td>地址</td>
    <td>联系方式</td>
    <td>操作</td>
    <%for(User user:list){%>
    	<tr>
    	  <td><%=user.getUser_name()%></td>
    	  <td><%=user.getUser_pwd() %></td>
    	  <td><%=user.getSex()%></td>
    	  <td><%=user.getEmail()%></td>
    	  <td><%=user.getAddress()%></td>
    	  <td><%=user.getMobilephone()%></td>
    	  <td>
    	    <a href="userServlet?type=del&userId=<%=user.getUser_id()%>">删除</a>
    	    <a href="userServlet?type=selOne&userId=<%=user.getUser_id()%>">编辑</a>
    	  </td>
    	</tr>
   <% } %>
</tr>

</table>
</body>
</html>